package com.jrfid.smartcabinet.demo.db.dao

import androidx.room.Dao
import androidx.room.Query
import com.jrfid.smartcabinet.demo.db.entity.AccountInfoEntity
import com.jrfid.smartcabinet.demo.db.entity.NFCInfoEntity

@Dao
interface NFCInfoDao : BaseDao<NFCInfoEntity> {
    @Query("select * from NFCInfoEntity where card = :no limit 1")
    fun findByCardNo(no: String): NFCInfoEntity?

    @Query("delete from NFCInfoEntity")
    fun deleteAll()
}